<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="leagal_aid.bean.*,java.util.*" %>
<% 
PictureBean pictureBean = new PictureBean();
List<PictureBean> newlist = pictureBean.findAll();
ContactBean contactBean = new ContactBean();
contactBean = contactBean.findAll();	

    int id = Integer.parseInt(request.getParameter("id"));
     CatelogBean catelogBean = new CatelogBean();
    List<CatelogBean> catelogList = catelogBean.findAllByHLb("top");
    
    
    LeagalBean leagalBean = new LeagalBean();
    leagalBean= leagalBean.findNewsById(id);
    
    String lb = leagalBean.getCategory();
   	CatelogBean catelogBean1 = new CatelogBean();
   	catelogBean1  = catelogBean1.findAllByLb(lb);
   	
   	
    LeagalBean leagalBean0 = new LeagalBean();
    List<LeagalBean> list = leagalBean0.findAllByLbForPX(lb);

    
    LeagalBean leagalBean1 = new LeagalBean();
    leagalBean1 = leagalBean1.findPreNewsById(list,id);
    LeagalBean leagalBean2 = new LeagalBean();
    leagalBean2 = leagalBean2.findNextNewsById(list,id);
    
   
	%>
<!DOCTYPE html>
<html>
<head>
<title><%=catelogBean1.getTitlename()%></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes" />
<link rel="shortcut icon" type="image/x-icon" href="../img/gmu.png">
<link rel="stylesheet" type="text/css" href="../css/Home_head.css">
<link rel="stylesheet" type="text/css" href="../css/menu.css">
<link rel="stylesheet" type="text/css" href="../css/style.css" /> 
<link rel="stylesheet" type="text/css" href="../css/zi.css">   
<link rel="stylesheet" type="text/css" href="../css/team&law.css">   
<link rel="stylesheet" type="text/css" href="../css/head_lunbo.css">
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="../js/jquery.anoslide.js"></script>
<script type="text/javascript" src="http://shouce.ren/static/ad/gg.js"></script>
<script>
$(function(){
	$('.carousel ul').anoSlide({
		items: 1,
		speed: 200,
		prev: 'a.prev',
		next: 'a.next',
		auto: 3000
	});
});
</script>
</head>
<body>
<div class="head_top">
	<div class="content_top">
		<div class="headtop">
			<div class="GMU">
				<div class="GMU_Logo"><img src="../img/gmu.png" class="GMU_Pic"></div>
				<div class="GMU_Law">赣&nbsp;南&nbsp;医&nbsp;学&nbsp;院&nbsp;法&nbsp;学&nbsp;系</div>
				<div class="GMULD" >GANNAN MEDICAL UNIVERSITY LAW DEPARTMENT</div>
			</div>
			<div class="ZY">
				<div class="ZY_Logo"><img src="../img/law_logo.png" class="zy_pic"></div>
				<div class="ZY_content"><a href="http://www.zhongyinlawyer.com">中&nbsp;银&nbsp;律&nbsp;师&nbsp;事&nbsp;务&nbsp;所</a></div>
				<div class="ZYLF">ZHONG YIN LAW FIRM</div>
			</div>
		</div>
		<div style="clear: both;"></div>
		<div class="down">
			<div class="JXLSW"> 江西医疗律师网</div>
			<div class="Website"><a href="http://www.jxylls.com"><span>www.jxylls.com</span></a></div>
			<div class="TLE">
				<div class="TLE_Logo"><img src="../img/tel_logo.png" class="tle_pic"></div>
				<div class="tel">服 务 热 线 ：</div>
				<div class="telephone"><span>0797-8888888</span></div>
			</div>
		<div style="clear: both;"></div>
		<div style="min-height: 20px;"></div>
		</div>
	</div>
</div>
<div class="c-nav">
	<div class="container navFlex">
		<div class="flexItem hiden">
			<img class="btnImg" src="../img/navBtn.png" />
		</div>
		<div class="flexItem show">
			<ul class="ul">
				<li><div class="menu"><a href="../Home_page.jsp">网站首页</a></div></li>
				<li><div class="menu"><a href="../team/team_introduce.jsp">团队介绍</a></div></li>
				<li><div class="menu"><a href="news.jsp?category=service">服务领域</a></div></li>
				<li><div class="menu"><a href="news.jsp?category=news">新闻动态</a></div></li>
				<li><div class="menu"><a href="../law/law_regulation.jsp?category=law">法律法规</a></div></li>
				<li><div class="menu"><a href="news.jsp?category=classic">经典案例</a></div></li>
				<li><div class="menu"><a href="../health/health.jsp?category=health">卫生法研究</a></div></li>
				<li><div class="menu"><a href="../contact/contact_us.jsp">联系我们</a></div></li>
			</ul>
		</div>
	</div>
</div>
<div class="main">
	<div class="mianc">
		<div class="carousel">
			<ul>
			<%for(int i = 0 ; i < newlist.size(); i++) {%>
				<li><a href="javascript:"><img src="<%=newlist.get(i).getPicture() %>"></a></li>
				<%} %>
			</ul>
		</div>
	</div>	
</div>
<div class="success_case">
	<div class="success_case_content">
		<div class="success_right">
			<div class="cgal_right_head">
				<div class="success_now">您现在的位置：<%=catelogBean1.getTitlename()%></div>
				<div class="success_back"><a href="news.jsp?category=<%=catelogBean1.getCategory()%>" style="font-weight: 200;">返回上一页</a></div>
			</div>
			<div class="NEWS_Column">
				<div class="news_content_title"><%= leagalBean.getTitle()%></div>
				<div style="display:block;width: 100%;text-align:left;font-size: 1.3vw;min-height:0px;">&nbsp;&nbsp;&nbsp;&nbsp;<%=leagalBean.getContent()%></div>
			</div>
			
			
			<div style="margin-top:30px;margin-left:10%;margin-bottom:30px;float:left;font-size: 1.3vw;" >
              <ul>
               <%if(leagalBean1!=null){%>
            <li><strong>上一篇：</strong><a href="content.jsp?id=<%= leagalBean1.getId()%>"><%= leagalBean1.getTitle()%></a></li>
            <%}else{%>
         <li><strong>上一篇：</strong>没有了</li>
            <%}%>
            
                <%if(leagalBean2!=null){%>
        <li><strong>下一篇：</strong><a href="content.jsp?id=<%= leagalBean2.getId()%>"><%= leagalBean2.getTitle()%></a></li>
            <%}else{%>
         <li><strong>下一篇：</strong>没有了</li>
            <%}%>
              </ul>
             </div>
		</div>
		
	</div>
	
</div>

<div style="clear: both;"></div>
<footer>
<div class="footer_div">
    <div class="foot_content">
        <a href="../Home_page.jsp">网站首页</a>
        <a href="../team/team_introduce.jsp">团队介绍</a>
        <a href="news.jsp?category=service">服务领域</a>
        <a href="news.jsp?category=news">新闻动态</a>
        <a href="../law/law_regulation.jsp?category=law">法律法规</a>
        <a href="news.jsp?category=classic">经典案例</a>
        <a href="../health/health.jsp?category=health">卫生法研究</a>
        <a href="../contact/contact_us.jsp">联系我们</a>
    </div>
</div>
    <br>
    <div class="fot" style="color: white; text-align: center; font-size:12px;">@赣南医学院法学系2019<br>通讯地址：江西省赣州市蓉江新区高校园区</div>
</footer>
<script type="text/javascript">
//用于判断导航栏的状态
var toggle = true;

//导航栏按钮
$('.hiden').click(function() {
	if (toggle) {
		$('.hiden').css("border", "1px solid #b0ccf3");
		toggle = false
	} else {
		$('.hiden').css("border", "1px solid transparent");
		toggle = true;
	}
	$(".show").slideToggle(300);
})

//窗口大小发生改变
$(window).resize(function() {
	//获取窗口宽度
	var windSize = $(window).width();

	if (windSize > 576) {
		$(".show").slideDown(0);
	} else {
		$(".show").slideUp(0);
	}
});
</script>
</body>
</html>